var itemBox = document.querySelectorAll(".item-txt");
var itemTxt = ["董大孬","董贺坤","15630615685","065600"];
var itemImg = document.querySelector(".item-right img");
var albumBox = document.querySelectorAll(".album-box");
var albunTxt = document.querySelector(".album-box>span");
var address =document.querySelector(".address");
var btn_true = document.querySelector(".btn-true");



var address=document.querySelector("#address")
var sp = document.querySelector("#s_province");
var an = document.querySelector("#s_city")
for(var i = 0;i<itemBox.length;i++){
	itemBox[i].index = i;
	itemBox[i].onclick=function (){
		this.innerHTML = "&nbsp;&nbsp;&nbsp;";
	}
	itemBox[i].onblur=function (){
		if(this.innerHTML == "&nbsp;&nbsp;&nbsp;"){
			this.innerHTML = itemTxt[this.index]
		}
	}
}
itemBox[4].onclick=function(){
	itemBox[4].value=""
}
itemBox[4].onblur=function(){
	if(itemBox[4].value==""){
		itemBox[4].value="填写个人邮箱"
	}
}
itemImg.onclick=function(){
	albumBox[0].style.height = "33vh";
	wrap.style.filter="blur(1px)";
}
albunTxt.onclick=function(){
	albumBox[0].style.height = "0";
	wrap.style.filter="blur(0)";
}

address.onclick=function(){
	albumBox[1].style.height = "33vh";
	wrap.style.filter="blur(1px)";
}

btn_true.onclick=function() {
	albumBox[1].style.height = "0";
	wrap.style.filter="blur(0)";
	address.innerText = sp.value + an.value
}

var swiper = new Swiper('.swiper-war .swiper-container', {
	direction: 'vertical',
	pagination: {
		el: '.swiper-pagination',
		clickable: true,
	},
    resistanceRatio : 0
});

/*编辑资料*/
